<?php
$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'网站配置'=>array($this->pre_module_url.'/setting/webconfig'),
	'前台权限管理'=>array('autoallot'),
	'权限集管理'=>array('taskadmin'),
);
?>

<div class="pro_filter c_f filter">
	<span class="mem_bgx link_btn mr5">
 	 	<?php echo CHtml::link('权限分配',$this->pre_module_url.'/memgroup/autoallot')?>
  		<b class="mem_bgx left"></b><b class="mem_bgx right"></b>
	</span>
	<span class="mem_bgx link_btn mr5">
 	 	<?php echo CHtml::link('权限集管理',$this->pre_module_url.'/memgroup/taskadmin')?>
  		<b class="mem_bgx left"></b><b class="mem_bgx right"></b>
	</span>
	<span class="mem_bgx link_btn mr5">
 	 	<?php echo CHtml::link('查看总是允许',$this->pre_module_url.'/memgroup/alwaysallow')?>
  		<b class="mem_bgx left"></b><b class="mem_bgx right"></b>
	</span>
</div>

<?php $module = ""; ?>
<div id="wizardMain" style="margin:10px">
  <table width="100%">
    <tr valign="top">
      <td width="50%" style="vertical-align: top">
        <table class="srbacDataGrid" width="100%" align="left">
          <tr>
            <th width="60%"><?php echo Yii::t('adm','Controller')?></th>
            <th colspan="2"><?php echo Yii::t('adm','Actions')?></th>
          </tr>
          <?php foreach($task as $key=>$val){ ?>

          <tr>
            <td width="60%"><?php echo $val ?></td>
            <td>
                <?php
                echo CHtml::ajaxLink(
					/*CHtml::image($this->module->getIconsPath().'/wizard.png',
						"Autocreate Auth Items for controller ".$controller,
						array(
							'border'=>0,
							'title'=>
								Helper::translate('srbac',
									'Scanning for Auth Items for controller').' '.$controller)
					)*/'检索操作',
					array('taskaction','task'=>$key),
					array(
						'type'=>'POST',
						'update'=>'#controllerActions',
						'beforeSend' => 'function(){
								$("#controllerActions").addClass("srbacLoading");
							}',
						'complete' => 'function(){
								$("#controllerActions").removeClass("srbacLoading");
							}'
					)
				);
                ?>
            </td>
            <td>
				<?php echo CHtml::Link(
					"删除权限集",
					array('deletetask','task'=>$key)
				);?>
            </td>
          </tr>
            <?php } ?>
        </table>
      </td>
      <td width="65%"  style="vertical-align: top">
        <table class="srbacDataGrid" width="50%" style="float:left">
          <tr>
            <th width="70%"><?php echo Helper::translate('srbac','Auth items')?></th>
          </tr>
          <tr>
            <td valign="top">
              <div id="controllerActions"></div>
            </td>
          </tr>
        </table>
      </td>
  </table>
</div>
<script type="text/javascript">
	function  solid(item){
		$(".s_"+item).toggle();
	}
</script>

